package com.iss;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class ResultsetUtil {
	public static ResultSet rs = null;

	public static ResultSet getResult(Statement sm, String sql) throws SQLException {
		rs = sm.executeQuery(sql);
		return rs;
	}

	public static ResultSet getResult(PreparedStatement psm) throws SQLException {
		rs = psm.executeQuery();
		return rs;
	}

	public void close() throws SQLException {
		rs.close();
	}
}
